import os
## 模板2
# env = Environment()
env = Environment(tools=["default", "clang"])
env["CC"] = ["clang"]
env["CXX"] = ["clang++"]
env["PROGSUFFIX"] = ".out"  # 可执行文件后缀.out
env["CCFLAGS"] = " -g3 -O0 -Wall"  # gdb 调试

env["CPPPATH"] = ["/usr/local/include/behaviortree_cpp_v3"]
env["LIBS"] = ["libbehaviortree_cpp_v3","dl"]
env["RPATH"] = ["/usr/local/lib", "/opt/ros/humble/lib"]

env.Program("1_behavior_tree_hello.cc")
env.Program("2_behaviorTreeCpp_sequence_顺序执行.cc")
env.Program("3_behaviorTreeCpp_registerSimpleAction_动态注册节点.cc")
env.Program("4_InputPort_黑板全局变量参数.cc")
env.Program("5_InputPort_OutputPort输出变量.cc")
env.Program("6_InputPort_OutputPort_输入输出变量.cc")
env.Program("7_SetBlackboard_设置黑板值.cc")
env.Program("8_sequence顺序_reactive响应式.cc")
env.Program("9_StdCoutLogger_FileLogger日志_穿越木门crossdoor.cc",LIBS=env["LIBS"] + ["crossdoor_nodes_dyn"])
